package com.changli06.polymorphism;

public class Man extends Person {
    boolean isSmoking = false;
    public void eat(){
        System.out.println("男人应该多吃饭，这样才有力气养家");
    }
    public void sleep (){
        System.out.println("男人应早早睡觉，白天才有精力工作");
    }
    public void earnMoney(){
        System.out.println("赚钱养家");
    }
}
